#pragma once
#include <windows.h>
#include <TCHAR.h>
#include "libzplay.h"
using namespace libZPlay;

class Player_impl
{
public:
    Player_impl();
    ~Player_impl();

    void Init(HWND, HINSTANCE);

    bool OpenFile(const std::wstring& fileName);
    bool CloseFile();
    bool Play();
    bool PlayFromTo(long start_pos, long end_pos);
    bool PlayFrom(long pos);
    
    long GetFileLength();
    long GetCurrentPos();
    
    bool Resume();
    bool Pause();

private:
    ZPlay *player_; 
};